New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: IncrementCapturerCount doesn't increase the capturer count #32973
Conversation
This regression was introduced by commit 22a70eb.
4765de4
to
49209a8
Compare
Thanks for working on this fix, the upstream change https://chromium-review.googlesource.com/c/chromium/src/+/2807829 makes it such the callers of
|
I don't think it's feasible since the
While this could work, it isn't the perfect approach. The thing I want to do is
|
Or do you consider merging the request first then working on a new approach for future releases? For example, wrap the handler and return it to the caller, let javascript run the callback sometime later, and remove the |
Yeah that sounds like a good way forward. |
Release Notes Persisted
|
I was unable to backport this PR to "15-x-y" cleanly; |
I was unable to backport this PR to "16-x-y" cleanly; |
I was unable to backport this PR to "17-x-y" cleanly; |
I have automatically backported this PR to "18-x-y", please check out #33371 |
@zeeker999 has manually backported this PR to "17-x-y", please check out #33430 |
Description of Change
This regression was introduced by commit 22a70eb. The change done by WebContentsImpl::IncrementCapturerCount() is reverted just before returning in WebContents::IncrementCapturerCount(), so the isBeingCaptured() always returns false. Fixed the issue by not running the close closure returned by web_contents::IncrementCapturerCount().
Please double-check that this change is fine since I'm not familiar with this code.
cc @ckerr @codebytere @deepak1556 @MarshallOfSound
Related #30666
Affected branches: 13-x-y to the current stable branch, please consider backporting this fix to them.
Checklist
npm test
passesRelease Notes
Notes: Fix the IncrementCapturerCount regression introduced by 13.0.0-beta.21